home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / lang / c--ex101 / system / cputest.c-- next >
Text File  |  1993-11-28  |  688b  |  27 lines

  1. /*
  2.     NAME:  CPUTEST.C--
  3.     DESCRIPTION:  C-- program that determines the CPU type of the machine
  4.                   and prints a little comment about it. 
  5.     RUN FILE SIZE:  428 bytes.
  6. */
  7.  
  8.  
  9. ?include "WRITE.H--"
  10.  
  11. main ()
  12. byte cpu;
  13. {
  14. WRITESTR("\nYOUR CPU TYPE IS:\n");
  15. cpu = @ GETCPU();
  16. IF( cpu == 0 )
  17.     WRITESTR("An 8086?  Get with the times buddy!\n");
  18. ELSE IF( cpu == 1 )
  19.     WRITESTR("80186.  Different.\n");
  20. ELSE IF( cpu == 2 )
  21.     WRITESTR("80286.  Time to up grade, your falling behind.\n");
  22. ELSE IF( cpu == 3 )
  23.     WRITESTR("80386.  Don't you wish you had a 486?\n");
  24. ELSE WRITESTR("80486!  Now that's class, be proud.\n");
  25. }
  26.  
  27. /* end of CPUTEST.C-- */